/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.media.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Area;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 自媒体电商地区管理Entity
 * @author 罗天文
 * @version 2018-06-19
 */
public class HkMediaUserShopAreaProvince extends DataEntity<HkMediaUserShopAreaProvince> {
	
	private static final long serialVersionUID = 1L;
	private HkMediaUserShopRegion region;		// 区域id 父类
	private Area province;		// 省
	
	public HkMediaUserShopAreaProvince() {
		super();
	}

	public HkMediaUserShopAreaProvince(String id){
		super(id);
	}

	public HkMediaUserShopAreaProvince(HkMediaUserShopRegion region){
		this.region = region;
	}

	@Length(min=0, max=32, message="区域id长度必须介于 0 和 32 之间")
	public HkMediaUserShopRegion getRegion() {
		return region;
	}

	public void setRegion(HkMediaUserShopRegion region) {
		this.region = region;
	}
	
	public Area getProvince() {
		return province;
	}

	public void setProvince(Area province) {
		this.province = province;
	}
	
}